package com.hwpt.chesedemo.data.local.repository

import com.hwpt.chesedemo.presentation.component.GameState
import com.hwpt.chesedemo.data.local.entity.GameRecordEntity
import kotlinx.coroutines.flow.Flow

interface ChessRepository {
    fun getSavedGames(): Flow<List<GameRecordEntity>>
    suspend fun deleteSavedGame(gameId: String)
    suspend fun saveGame(state: GameState)  // 接收游戏状态参数
}